home *** CD-ROM | disk | FTP | other *** search
- on CheckForFlip
- global theFirstShipChannel, theBackgroundVelocity
- if (GetMovingRight() = 1) and (theBackgroundVelocity >= 0) then
- if the memberNum of sprite theFirstShipChannel = the number of member "Ship Up 1" then
- set the memberNum of sprite theFirstShipChannel to the number of member "Left Ship Up 1"
- else
- if the memberNum of sprite theFirstShipChannel = the number of member "Ship Up 2" then
- set the memberNum of sprite theFirstShipChannel to the number of member "Left Ship Up 2"
- else
- if the memberNum of sprite theFirstShipChannel = the number of member "Ship Down 1" then
- set the memberNum of sprite theFirstShipChannel to the number of member "Left Ship Down 1"
- else
- if the memberNum of sprite theFirstShipChannel = the number of member "Ship Down 2" then
- set the memberNum of sprite theFirstShipChannel to the number of member "Left Ship Down 2"
- else
- if the memberNum of sprite theFirstShipChannel = the number of member "Ship Normal" then
- set the memberNum of sprite theFirstShipChannel to the number of member "Left Ship Normal"
- end if
- end if
- end if
- end if
- end if
- else
- if (GetMovingRight() = 0) and (theBackgroundVelocity <= 0) then
- if the memberNum of sprite theFirstShipChannel = the number of member "Left Ship Up 1" then
- set the memberNum of sprite theFirstShipChannel to the number of member "Ship Up 1"
- else
- if the memberNum of sprite theFirstShipChannel = the number of member "Left Ship Up 2" then
- set the memberNum of sprite theFirstShipChannel to the number of member "Ship Up 2"
- else
- if the memberNum of sprite theFirstShipChannel = the number of member "Left Ship Down 1" then
- set the memberNum of sprite theFirstShipChannel to the number of member "Ship Down 1"
- else
- if the memberNum of sprite theFirstShipChannel = the number of member "Left Ship Down 2" then
- set the memberNum of sprite theFirstShipChannel to the number of member "Ship Down 2"
- else
- if the memberNum of sprite theFirstShipChannel = the number of member "Left Ship Normal" then
- set the memberNum of sprite theFirstShipChannel to the number of member "Ship Normal"
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end
-